function Menu(count,pwd,type) {
	$.ajax({
		url: "cs",
		type: "post",
		dataType: "JSON",
		data: {
			one:type,
			two:count,
			three:pwd,
		},
		success: function(data) {
			show(data);
			console.log(data);

		},
		error: function(err) {
			console.log(err);
		},
	});

}
function show(data){
	if (data==="success"){
		alert("修改成功");
		allscore("","pwd","all");
	}else{
		alert("修改失败");
	}
}
function add(){
	var fz=document.getElementById("fs").value;
	alert(fz);
	Menu(fz,"pwd","type")
}
//总分
function allscore(count,pwd,type) {
	$.ajax({
		url: "cs",
		type: "post",
		dataType: "JSON",
		data: {
			one:type,
			two:count,
			three:pwd,
		},
		success: function(data) {
			console.log(data);
			ScoreShow(data);


		},
		error: function(err) {
			console.log(err);
		},
	});
}
allscore("","pwd","all");

function ScoreShow(data){
  document.getElementById("init").innerHTML=data[0].rOCOR;
}